//
//  Game.m
//  OC作业
//
//  Created by dllo on 15/12/1.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "Game.h"

@implementation Game

//- (void)setName:(NSString *)name{
//    _name = name;
//}
//- (NSString *)name{
//    return _name;
//}
//
//- (void)setType:(NSString *)type{
//    _type = type;
//}
//- (NSString *)type{
//    return _type;
//}


- (instancetype)initWithName:(NSString *)name
                        type:(NSString *)type{
    self = [super init];
    if (self) {
        _name = name;
        _type = type;
    }
    
    return self;
}

+ (instancetype)gameWithName:(NSString *)name
                        type:(NSString *)type{
    
    Game *game = [[Game alloc]initWithName:name type:type];
    return game;
}




@end
